package cn.zymall.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "home_billboards")
public class HomeBillboards extends BaseEntity implements Serializable {
    public static final String COL_CREATION_TIME = "CREATION TIME";
    /**
     * 首页广告栏表 id
     */
    @TableId(value = "HOME_BILLBOARDS_ID", type = IdType.AUTO)
    private Integer homeBillboardsId;

    /**
     * 店铺id
     */
    @TableField(value = "STORE_ID")
    private Integer storeId;

    /**
     * 图片路径
     */
    @TableField(value = "IMAGE_PATH")
    private String imagePath;

    /**
     * 播放开始时间
     */
    @TableField(value = "START_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8")
    private Date startTime;

    /**
     * 播放结束时间
     */
    @TableField(value = "END_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8")
    private Date endTime;

    /**
     * 创建时间
     */
    @TableField(value = "`CREATION_TIME`")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8")
    private Date creationTime;

    /**
     * 价格
     */
    @TableField(value = "PICTURE_PRICE")
    private Double picturePrice;

    /**
     * 状态
     */
    @TableField(value = "HOME_STATUS")
    private int homeStatus;

    /**
     * 创建人
     */
    @TableField(value = "CREATE_BY")

    private Integer createBy;

    /**
     * 更新人
     */
    @TableField(value = "UPDATE_BY")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "UPDATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_HOME_BILLBOARDS_ID = "HOME_BILLBOARDS_ID";

    public static final String COL_STORE_ID = "STORE_ID";

    public static final String COL_IMAGE_PATH = "IMAGE_PATH";

    public static final String COL_START_TIME = "START_TIME";

    public static final String COL_END_TIME = "END_TIME";

    public static final String COL_CREATIONTIME ="CREATION TIME";

    public static final String COL_PICTURE_PRICE = "PICTURE_PRICE";

    public static final String COL_TOTAL_PRICE = "TOTAL_PRICE";

    public static final String COL_CREATE_BY = "CREATE_BY";

    public static final String COL_UPDATE_BY = "UPDATE_BY";

    public static final String COL_UPDATE_TIME = "UPDATE_TIME";
}
